﻿namespace FZRD
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        [assembly: log4net.Config.XmlConfigurator(Watch = true)]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new UdpMain());
            LoginForm loginForm = new LoginForm();
            loginForm.ShowDialog();
            if ((loginForm.IsLogin) || (loginForm.DialogResult == DialogResult.OK))
            {
                //ApplicationConfiguration.Initialize();
                MainForm mainForm = new MainForm(loginForm.GetIsAdmin());
                Application.Run(mainForm);
            }
        }
    }
}
